import './index.less';

interface IProps {
  title: string;
  rightTitle?: JSX.Element;
  subTitle?: JSX.Element;
}

const PageTitle = (props: IProps) => {
  const { title, rightTitle, subTitle } = props;
  return (
    <div className="page-title__container">
      <div>
        <h1>{title}</h1>
        {rightTitle}
      </div>
      <div>{subTitle}</div>
    </div>
  );
};

export default PageTitle;
